package learn.test;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description
 * @User zero
 * @Datetime 2021/4/26 21:34
 */
public class TaskA extends Task {
    ConcurrentHashMap<String, Integer> map;

    public TaskA(ConcurrentHashMap<String, Integer> map) {
        this.map = map;
    }

    @Override
    void loop() {
        System.out.println(map.get("xx"));
    }
}
